	public synchronized ArrayList<Image> getLast(int numberOfRows) {
		if(numberOfRows < 0) {
			throw new IllegalArgumentException();
		}
		ArrayList<Image> images = new ArrayList<Image>();
		try {
			PreparedStatement statement = conn.prepareStatement(
				"SELECT id, url, external_id, description, created_time "+
				"WHERE blocked='0'"+
				" FROM images ORDER BY id DESC LIMIT ?;");
			statement.setInt(1, numberOfRows);
			ResultSet result = statement.executeQuery();
			while (result.next()) {
				Image img = new Image(
						result.getString("url"),
						result.getLong("external_id"),
						result.getString("description"),
						result.getDate("created_time")
				);
				img.setInternalId(result.getInt("id"));
				images.add(img);
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return images;
	}

	public synchronized ArrayList<Image> getLast(int numberOfRows) {
		if(numberOfRows < 0) {
			throw new IllegalArgumentException();
		}
		ArrayList<Image> images = new ArrayList<Image>();
		try {
			PreparedStatement statement = conn.prepareStatement(
				"SELECT id, url, external_id, description, created_time" +
				" FROM images WHERE blocked='0'"+
				" ORDER BY id DESC LIMIT ?;");
			statement.setInt(1, numberOfRows);
			ResultSet result = statement.executeQuery();
			while (result.next()) {
				Image img = new Image(
						result.getString("url"),
						result.getLong("external_id"),
						result.getString("description"),
						result.getDate("created_time")
				);
				img.setInternalId(result.getInt("id"));
				images.add(img);
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return images;
	}
